<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CountCommissionModel extends Model
{
    use HasFactory;
    protected $table = 'count_commission';
    public $timestamps = false;
    protected $fillable = [
        'teacher_id',
        'time',
        'base_commission',
        'course_commission',
        'course_num',
    ];

    public function teacher() {
        return $this->belongsTo(TeacherModel::class, 'teacher_id', 'id');
    }
}
